Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RLlib]: Fix FQE Policy call #26671

Merged
merged 9 commits into from
Jul 19, 2022
Merged

Conversation

Rohan138
Copy link
Contributor

@Rohan138 Rohan138 commented Jul 18, 2022

Why are these changes needed?

Hotfix to make OPE work for both PolicyV2 and DQNTorchPolicy (Policyv1)

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@Rohan138 Rohan138 added rllib RLlib related issues rllib-offline-rl Offline RL problems labels Jul 18, 2022
@Rohan138 Rohan138 changed the title [RLlib]: Fix FQE Policy [RLlib]: Fix FQE Policy call Jul 18, 2022
Signed-off-by: rapotdar <[email protected]>
Signed-off-by: rapotdar <[email protected]>
Signed-off-by: rapotdar <[email protected]>
Copy link
Contributor

@kouroshHakha kouroshHakha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@richardliaw richardliaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the reason for not having a unit test here?

@@ -162,6 +166,44 @@ def test_ope_in_algo(self):
print(*list(std_est.items()), sep="\n")
print("\n\n\n")

def test_fqe_model(self):
# Miscellaneous tests for FQETorchModel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write a docstring on what this function is testing?

Copy link
Contributor

@kouroshHakha kouroshHakha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are added. Reviewed again and approved @richardliaw

@richardliaw richardliaw merged commit 4fded80 into ray-project:master Jul 19, 2022
xwjiang2010 pushed a commit to xwjiang2010/ray that referenced this pull request Jul 19, 2022
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rllib RLlib related issues rllib-offline-rl Offline RL problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants